/*
 * 本类记录单一商品信息,提供修改方法
 * 2011-11-07:completed initially by gongshw
 */
package nju.mscs.data.object;

import java.io.Serializable;

public class Goods implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 2615393279130811107L;
	private String name;
	private double price;
	private double productPrice;
	private String id;
	private int amount;
	private int beforeAmount;//最后一次入库前的数量
	private int lastAmount;//最后一次入库的数量
	private Date inTime;//入库时间
	private Date producedTime;
	private Date outTime;
	private String predictTime;
	private String predictScrap;
	public Goods(String name,double price,String id,int amount){
		this.name = name;
		this.price = price;
		this.id = id;
		this.amount = amount;
	}
	public void setTime(Date in,Date produce,Date out){
		this.inTime = in;
		this.producedTime = produce;
		this.outTime = out;
		
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public int getAmount() {
		return amount;
	}
	public void setAmount(int amount) {
		this.amount = amount;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Date getProducedTime() {
		return producedTime;
	}
	public void setProducedTime(Date producedTime) {
		this.producedTime = producedTime;
	}
	public Date getInTime() {
		return inTime;
	}
	public void setInTime(Date inTime) {
		this.inTime = inTime;
	}
	public Date getOutTime() {
		return outTime;
	}
	public void setOutTime(Date outTime) {
		this.outTime = outTime;
	}
	public int getBeforeAmount() {
		return beforeAmount;
	}
	public void setBeforeAmount(int beforeAmount) {
		this.beforeAmount = beforeAmount;
	}
	public int getLastAmount() {
		return lastAmount;
	}
	public void setLastAmount(int lastAmount) {
		this.lastAmount = lastAmount;
	}
	public String getPredictTime() {
		return predictTime;
	}
	public void setPredictTime(String predictTime) {
		this.predictTime = predictTime;
	}
	public String getPredictScrap() {
		return predictScrap;
	}
	public void setPredictScrap(String predictScrap) {
		this.predictScrap = predictScrap;
	}
	public double getProductPrice() {
		return productPrice;
	}
	public void setProductPrice(double productPrice) {
		this.productPrice = productPrice;
	}
}